package cn.edu.lnpu.manage.cms.service;

import cn.edu.lnpu.domain.cms.CmsConfig;
import cn.edu.lnpu.manage.cms.dao.CmsConfigRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CmsConfigService {

    @Autowired
    CmsConfigRepository cmsConfigRepository;

    //根据id查询配置管理信息
    public CmsConfig getConfigById(String id) {

        return cmsConfigRepository.findById(id).orElse(null);
    }
}
